<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/10/20
  Time: 9:53
  To change this template use File | Settings | File Templates.
--%>

<%@page isELIgnored="false" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--EL表达式获取值--%>
    <%
        String name = "tom";

        request.setAttribute("name",name);
        session.setAttribute("name1","jack");
        application.setAttribute("name2","mary");
        pageContext.setAttribute("name3","cat");
    %>


    ${requestScope.name}<br>
    ${sessionScope.name1}<br>
    ${applicationScope.name2}<br>
    ${pageScope.name3}
</body>
</html>
